package com.nowcoder.Offer.Tree;

/**
 * 二叉树的镜像
 */
public class MirrorTree {

    public void Mirror(TreeNode root) {
        if(root == null) return;

        TreeNode tmp = root.left;
        root.left = root.right;
        root.right = tmp;

        Mirror(root.left);
        Mirror(root.right);
    }


}
